package W;

public class test {
    public static void main(String[] args) {
        String [] strs={"this","12","is","null","25","test"};
        String strl="";
        Integer int2=0;
        for (int i=0;i<strs.length;i++){
            try{
                int2+=Integer.parseInt(strs[i]);
            }catch (Exception e){
                if(strs[i]!=null){
                    strl+=strs[i].toUpperCase()+"";
                }
            }
        }
        System.out.println("Result="+int2);
        System.out.println(strl);
    }
}
